app.service("sellerService",function ($http) {
    //模糊查询
    this.search=function(page,rows,searchEntity){
        return $http.post('../sellerManagementController/search.do?pageNum='+page+"&pageSize="+rows, searchEntity);
    }
    //查商家详情
    this.findOneSeller=function (sellerid) {
        return $http.get('../sellerManagementController/findOneSeller.do?sellerid='+sellerid);
    }
    //修改商家状态
    this.updateSellerStatus=function (sellerid,status) {
        return $http.get('../sellerManagementController/updateSellerStatus.do?sellerid='+sellerid+'&status='+status);
    }
});